<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$title}</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">编号<span class="text-danger small">(2位数字)</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="pname_no" value="{$pname_no}" readonly>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">商品名</label>
            <div class="controls">
                <input type="text" class="text input-large" name="pname" value="" >
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">所属水果分类</label>
            <div class="controls">
                <input type="text" class="text input-large"  value="{$belong_to|get_name_by_id=###,'material_fruitclassify','fruit_classify_no','fruit_classify'}" readonly/>
                <input type="hidden" class="text input-large" name="belong_to" value="{$belong_to}" >
            </div>
        </div>
        <br/>

        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Material/fruitclassifymanage')}');
        $('select').select2();
    </script>
</block>
